#include <iostream>
#include <ctime>
#include <cmath>

using namespace std;

int main(){
	for(int i = 0; i <= 9; ++i){
		int n = pow(10, i);
		clock_t startTime = clock();
		
		int sum = 0;
		for(int j = 0; j < n; ++j){
			sum += j;
		}
		clock_t endTime = clock();
		
		cout << "10^ " << i << " : " << 
			double(endTime-startTime)/CLOCKS_PER_SEC << "s" << endl;
	}
}
